package com.emspost.utils;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class RegexUtil {
    public static void main(String[] args) {
        String regex = "^EV#\\d+$";
        String testString = "EV#1234";


        // 创建Pattern和Matcher对象
        Pattern pattern = Pattern.compile(regex);
        Matcher matcher = pattern.matcher(testString);
        System.out.println("字符结果:" + matcher.matches());
    }
}
